<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="common/header.jsp"%>
<div class="page-title container">
	<div class="title_left row " style="margin-left:50px;margin-top:30px;font-size:15px;" >
		<form action="${pageContext.request.contextPath}/root/updatestatus" id="form123" name="form">
		<input type="hidden" name="id" value="${id}">
		<input type="hidden" name="createBy" value="${createBy}">
		<div  class="row"><span class="col-md-4" class="row">商品名称:</span><span class="col-md-8">${list.p_Name}</span><br/><br/></div>
			
			<div class="row"><span class="col-md-4">商品地址:</span><span class="col-md-8">${list.address}</span><br/><br/></div>
			<div class="row"><span class="col-md-4">商品简介:</span><span class="col-md-8">${list.desc}</span><br/><br/></div>
			<div class="row"><span class="col-md-4">创建时间:</span><span class="col-md-8"><fmt:formatDate value="${list.createDate}"/></span><br/><br/></div>
			
			<div class="row"><span class="col-md-4">更新时间:</span><span class="col-md-8"><fmt:formatDate value="${list.modifyDate}"/></span><br/><br/></div>
			
		<div class="row"><span class="col-md-4">商品类型:</span><span class="col-md-8">
			<c:if test="${list.p_type== 1 } ">景点</c:if>
			<c:if test="${list.p_type == 2 }">酒店</c:if>
			<c:if test="${list.p_type == 3 }">餐饮</c:if></span><br/><br/></div>
		<div  class="row">	<span class="col-md-2">状态:</span><span class="col-md-8"><c:if test="${list.status == 1 }">上架中</c:if>
			<c:if test="${list.status == 2 }">未上架</c:if></span><br/><br/></div>
		<div  class="row">	<span class="col-md-2">营业执照:</span><span class="col-md-8"><a href="${list.org_PicPath}">点击查看</a></span><br/><br/></div>
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<c:if test="${list.status == 1 }">
				<button class="btn btn-danger" type="submit" name="status" id="submit" value="1">
					下架
				</button>
			</c:if>
			<c:if test="${list.status == 2 }">
				<button class="btn btn-danger" type="submit" name="status" id="submit" value="2">
					上架
				</button>
			</c:if>
			
			<a href="${pageContext.request.contextPath}/root/show?proName=${list.createBy}" class="btn btn-primary">返回</a>
		</form>
	</div>
</div>
<div class="clearfix"></div>
<%@include file="common/footer.jsp"%>
<script type="text/javascript">
	$("#submit").on("click",function(){
		$("#form123").submit();
	});
</script>
<script src="${pageContext.request.contextPath }/statics/root.js/show.js"></script>
